package com.dt76.smallloanbackendservice.mapper.lhuaw;

import com.dt76.smallloanbackendservice.pojo.lhuaw.StationLetter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StationLetterMapper {
    //系统消息的查询
    List<StationLetter> qryAll();
    //动态查询+分页
    List<StationLetter> getConditionPageAll(
            @Param("start") int start,
            @Param("size") int size,
            @Param("stationMessageTitle") String stationMessageTitle,
            @Param("stationPublisher") String stationPublisher
    );
    int qryConditionCount(@Param("stationMessageTitle") String stationMessageTitle,
                          @Param("stationPublisher") String stationPublisher
    );
    //删除
    void deleteStation(@Param("stationId") int stationId);
    //新增
    int saveStation(StationLetter stationLetter);
    //查看
    StationLetter seeStation(@Param("stationId") int stationId);
}
